.class Lcom/TwinBlade/PicturePassword/r;
.super Landroid/os/AsyncTask;
.source "SourceFile"


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/Crop;


# direct methods
.method private constructor <init>(Lcom/TwinBlade/PicturePassword/Crop;)V
    .locals 0
    .parameter

    .prologue
    .line 321
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/TwinBlade/PicturePassword/Crop;Lcom/TwinBlade/PicturePassword/r;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 321
    invoke-direct {p0, p1}, Lcom/TwinBlade/PicturePassword/r;-><init>(Lcom/TwinBlade/PicturePassword/Crop;)V

    return-void
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/r;)Lcom/TwinBlade/PicturePassword/Crop;
    .locals 1
    .parameter

    .prologue
    .line 321
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    return-object v0
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Boolean;
    .locals 6
    .parameter

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 329
    .line 330
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/Crop;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 331
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/Crop;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    const-string v3, "CropWallpaper"

    invoke-virtual {v0, v3}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    .line 333
    :goto_0
    if-eqz v0, :cond_0

    .line 334
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->f(Lcom/TwinBlade/PicturePassword/Crop;)V

    .line 335
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->g(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/os/Handler;

    move-result-object v0

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/Crop;->h(Lcom/TwinBlade/PicturePassword/Crop;)Ljava/lang/Runnable;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 336
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    .line 354
    :goto_1
    return-object v0

    :cond_0
    move v3, v2

    .line 339
    :goto_2
    const/4 v0, 0x2

    if-lt v3, v0, :cond_1

    .line 354
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_1

    .line 340
    :cond_1
    iget-object v4, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    if-nez v3, :cond_2

    move v0, v1

    :goto_3
    invoke-static {v4, v0}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;Z)V

    .line 341
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->g(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/os/Handler;

    move-result-object v0

    iget-object v4, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v4}, Lcom/TwinBlade/PicturePassword/Crop;->h(Lcom/TwinBlade/PicturePassword/Crop;)Ljava/lang/Runnable;

    move-result-object v4

    invoke-virtual {v0, v4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 344
    const-wide/16 v4, 0xbb8

    :try_start_0
    invoke-static {v4, v5}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 348
    :goto_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->i(Lcom/TwinBlade/PicturePassword/Crop;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 349
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_1

    :cond_2
    move v0, v2

    .line 340
    goto :goto_3

    .line 350
    :cond_3
    if-ne v3, v1, :cond_4

    .line 351
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_1

    .line 339
    :cond_4
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_2

    .line 345
    :catch_0
    move-exception v0

    goto :goto_4

    :cond_5
    move v0, v2

    goto :goto_0
.end method

.method protected a(Ljava/lang/Boolean;)V
    .locals 4
    .parameter

    .prologue
    .line 359
    :try_start_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->e(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 363
    :goto_0
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 364
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const v2, 0x7f0900b3

    invoke-virtual {v1, v2}, Lcom/TwinBlade/PicturePassword/Crop;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x3

    const/4 v3, 0x1

    invoke-static {v0, v1, v2, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 387
    :goto_1
    return-void

    .line 366
    :cond_0
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 367
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    .line 368
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const v2, 0x7f0900b7

    invoke-virtual {v1, v2}, Lcom/TwinBlade/PicturePassword/Crop;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 369
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const v2, 0x7f0900b8

    invoke-virtual {v1, v2}, Lcom/TwinBlade/PicturePassword/Crop;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 370
    const-string v1, "Yes"

    .line 371
    new-instance v2, Lcom/TwinBlade/PicturePassword/s;

    invoke-direct {v2, p0}, Lcom/TwinBlade/PicturePassword/s;-><init>(Lcom/TwinBlade/PicturePassword/r;)V

    .line 370
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 376
    const-string v1, "No"

    .line 377
    new-instance v2, Lcom/TwinBlade/PicturePassword/t;

    invoke-direct {v2, p0}, Lcom/TwinBlade/PicturePassword/t;-><init>(Lcom/TwinBlade/PicturePassword/r;)V

    .line 376
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 384
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 385
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    goto :goto_1

    .line 360
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method protected varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/TwinBlade/PicturePassword/r;->a([Ljava/lang/Void;)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p0, p1}, Lcom/TwinBlade/PicturePassword/r;->a(Ljava/lang/Boolean;)V

    return-void
.end method

.method protected onPreExecute()V
    .locals 5

    .prologue
    .line 323
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const v3, 0x7f0900b1

    invoke-virtual {v2, v3}, Lcom/TwinBlade/PicturePassword/Crop;->getString(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const v4, 0x7f0900b2

    invoke-virtual {v3, v4}, Lcom/TwinBlade/PicturePassword/Crop;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    invoke-static {v1, v2, v3, v4}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Landroid/app/ProgressDialog;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/Crop;->b(Lcom/TwinBlade/PicturePassword/Crop;Landroid/app/ProgressDialog;)V

    .line 324
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->e(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/app/ProgressDialog;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 325
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/r;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->e(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    .line 326
    return-void
.end method
